package com.jrx.anytxn.transaction.mapper.ext;

import com.jrx.anytxn.transaction.entity.BtAccountingTransferList;
import com.jrx.anytxn.transaction.mapper.base.BtAccountingTransferListMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtBtAccountingTransferListMapper extends BtAccountingTransferListMapper {
    /**
     * 根据业务日期查询
     *
     * @param businessDate
     * @return
     */
    List<BtAccountingTransferList> selectByTransList(@Param(value = "customerId") String customerId,
                                                     @Param(value = "tenantId") String tenantId,
                                                     @Param(value = "businessDate") Date businessDate);


    int selectCountTransferList(@Param(value = "loanId") String loanId,
                                @Param(value = "customerId") String customerId,
                                @Param(value = "tenantId") String tenantId,
                                @Param(value = "bussinessDate") Date bussinessDate);

    int batchInsert(List<BtAccountingTransferList> transferLists);
}